<%
    String namaUser = null;

    Cookie[] cookies = request.getCookies();
    if (cookies != null) {
        for (Cookie cookie : cookies) {
            if (cookie.getName().equals("nama")) {
                namaUser = cookie.getValue();
            }

        }
    }
    if (namaUser == null) {
        response.sendRedirect("login.jsp");
    }
%>


<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="http://localhost:8080/museumfp/paneladmin">Home</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">



        </ul>

        <ul class="nav navbar-nav navbar-right">
            <li>
                <a href="http://localhost:8080/museumfp/logout">Logout</a>
            </li>

        </ul>
    </div>

</nav>
<div class="row clearfix">
    <div class="col-md-6 column">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                <span class="glyphicon glyphicon-bookmark"></span> Panel Admin</h3>
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6 col-md-6">             
                                    <a href="http://localhost:8080/museumfp/addinfo" class="btn btn-info btn-lg btn-block" role="button"><span class="glyphicon glyphicon-list-alt"></span> Tambah Informasi Objek</a>
                                    <a href="http://localhost:8080/museumfp/listobjek" class="btn btn-danger btn-lg btn-block" role="button"><span class="glyphicon glyphicon-file"></span> List Informasi Objek</a>
                                </div>
                                <div class="col-xs-6 col-md-6"> 
                                    <a href="http://localhost:8080/museumfp/listkomen" class="btn btn-warning btn-lg btn-block" role="button"><span class="glyphicon glyphicon-comment"></span> List Komentar</a>
                                    <a href="http://localhost:8080/museumfp/front" class="btn btn-success btn-lg btn-block" role="button"><span class="glyphicon glyphicon-globe"></span> Website</a>
                                </div>
                            </div>                    
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6 column">
        <h2>
            Selamat Datang <%=namaUser%>
        </h2>
        <p>
            Panel admin digunakan untuk admin yang telah didaftarkan oleh superadmin, dan mempunyai privilege untuk menambah informasi objek museum, menghapus dan mengedit informasi objek museum dengan mengklik list informasi dan terakhir dapat menghapus komentar pengunjung dengan mengklik list komentar.
        </p>

    </div>
</div>

</body>
</html>
